﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using BCDto.OA.WorkflowTemplate.WorkflowTemplateStep;

namespace BCDto.OA.WorkflowTemplate.WorkflowTemplateFlowStepDesign
{
	/// <summary>
	/// 工作流模板流程步骤设计
	/// </summary>
	public class WorkflowTemplateFlowStepDesignRequestDto
	{
		/// <summary>
		/// 工作流模板Code
		/// </summary>		
		[Display(Name = "工作流模板Code")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string TemplateCode { get; set; }
		/// <summary>
		/// 工作流模板名称
		/// </summary>		
		[Display(Name = "工作流模板名称")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(100, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string TemplateName { get; set; }
		/// <summary>
		/// 总步骤数
		/// </summary>		
		[Display(Name = "总步骤数")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public int TotalSteps { get; set; }
		/// <summary>
		/// 流程步骤配置
		/// </summary>		
		[Display(Name = "流程步骤配置")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public List<WorkflowTemplateStepRequestDto> FlowObjs { get; set; }
	}
}

